/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import '../../../styles/variables.scss';

$tabs-bg-color: #efefef;
$border-color: #cccccc;
$tab-bg-color: #dddddd;
$tab-active-bg-color: white;
$dropdown-font-color: #333333;
$workspace-link-active-color: var(--brand-primary-color);

.workspace-tabs {
  height: 50px;
  background-color: $tabs-bg-color;
  border-bottom: 1px solid $border-color;
  padding: 5px 10px 0 10px;

  .workspace-tabs-list {
    height: 45px;
    position: relative;
    z-index: 1061;
    white-space: nowrap;
    display: flex;
    align-items: flex-end;
  }

  .tab-arrow {
    display: inline-block;
    width: 30px;
    cursor: pointer;
  }
}

.workspace-list-popover.popover {
  width: 250px;
  border-radius: 0;
  margin-top: 3px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;

  &.bs-tether-element-attached-right {
    margin-left: 0;
    z-index: 999;
  }
  &.bs-tether-element-attached-top {
    margin-top: 2px;
    z-index: 999;
  }

  .workspace-list-dropdown-item {
    display: block;
    font-size: 13px;
    padding: 10px;
    width: 100%;

    .workspace-link {
      color: $dropdown-font-color;
      display: inline-block;
      width: calc(100% - 25px);
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;

      &:hover {
        color: $workspace-link-active-color;
        text-decoration: none;
      }

      &.active { color: $workspace-link-active-color; }
    }

    span.fa {
      margin-top: 1px;
      cursor: pointer;
    }
  }
}

.workspace-delete-confirmation {
  .modal-body {
    h4 { margin-bottom: 15px; }
  }
}
